/***********************************************************************
 * Module:  DocumentBuilder.java
 * Author:  wuxinyang
 * Purpose: Defines the Interface DocumentBuilder
 ***********************************************************************/

package com.witframework.plugin.lucene.builder;

import java.io.InputStream;

import org.apache.lucene.document.Document;

import com.witframework.plugin.lucene.DocumentHandlerException;



/** 资源Document创建器
 * 
 * @pdOid 84b0cf68-4db2-4082-a1bb-2f96c8e25313 */
public interface DocumentBuilder {
   /** 返回Document对象
    * 
    * @param reader
    * @pdOid 0f707576-1da9-4558-a013-a79cc9a0c659 */
   Document createDocument(InputStream is) throws DocumentHandlerException;

}